package com.happy.ibidding.bean;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
public class Comment {

    @Id
    private String id;

    private String askId;

    private long publishTime;

    private String userId;

    private String detail;

    @JsonProperty(access = JsonProperty.Access.READ_ONLY)
    private User user;

}
